package com.lebang.mapper;

import com.lebang.domain.MemberPointRecord;
import com.lebang.example.MemberPointRecordExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * MemberPointRecordMapper继承基类
 */
@Mapper
public interface MemberPointRecordMapper extends MyBatisBaseDao<MemberPointRecord, Integer, MemberPointRecordExample> {

    void updateByMemberId(@Param("memberId") String memberId);

    BigDecimal selectPointByTime(@Param("memberId") String memberId,@Param("star") LocalDateTime star,@Param("end") LocalDateTime end);
}